﻿
/// <reference path="_namespace.js" />
/// <reference path="Point.js" />

$imports("ajax.drawing.Point");

ajax.lang.addNamespace("ajax.drawing");

// Line class
ajax.drawing.Line = function(pointa, pointb)
{    
	this.pointA = pointa;
	this.pointB = pointb;
}

ajax.drawing.Line.prototype.pointA   = ajax.drawing.Point.prototype;
ajax.drawing.Line.prototype.pointB   = ajax.drawing.Point.prototype;

ajax.drawing.Line.prototype.toString = function()
{
    return "ajax.drawing.Line";
}


//-----------------------------------------------------------------------------
ajax.drawing.Line.cast = function(obj)
{///<returns type="ajax.drawing.Line"/>
    return obj;    
}
